﻿<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/Site.Master" CodeBehind="Quotes.aspx.vb" Inherits="helzwebscripting.Quotes" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <h1 class="bigHeadings">Twilighters Community Quotes</h1>    
    
    <asp:HyperLink runat="server" ID="RSSbtnQuotes" NavigateUrl="~/RssFeedQuotes.aspx" >
    <asp:Image ID="Image1" class="floatRight" runat="server" ImageUrl="~/Pictures/Design/rss_btn.png" AlternateText="RSS" />
    </asp:HyperLink>

    <p>Twilighters, here are your quotes. Click the discuss link to view comments (and add your own). Don't forget to rate it!<br />
        Got a Twilight quote? We want to hear it!</p>

    <asp:Button ID="addNewQuote" runat="server" Text="Add Your Quote Here" CssClass="addBtn" PostBackUrl="~/AddNewQuote.aspx" />
    <br /><br />

        <asp:GridView ID="quotesGV" runat="server" AllowSorting="True" 
            AutoGenerateColumns="False" DataKeyNames="ID" 
            DataSourceID="SqlDataSource1" class="gridviewList" PagerStyle-CssClass="pager" 
            AlternatingRowStyle-CssClass="altRowStyle" AllowPaging="True" PageSize="15">
            <Columns>
                <asp:BoundField DataField="Character" HeaderText="Character" 
                    SortExpression="Character" />
                <asp:BoundField DataField="Quote" HeaderText="Quote" SortExpression="Quote" />
                <asp:BoundField DataField="Book" HeaderText="Book" SortExpression="Book" />
                <asp:HyperLinkField DataNavigateUrlFields="ID" 
                    DataNavigateUrlFormatString="QuoteDiscuss.aspx?ID={0}" 
                    HeaderText="Discuss Quote" Text="Discuss" />
            </Columns>
            <HeaderStyle ForeColor="Black" />
        <SortedAscendingHeaderStyle ForeColor="Black"/>
        <SortedDescendingHeaderStyle ForeColor="Black"/>
        </asp:GridView>
        <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
            ConnectionString="<%$ ConnectionStrings:TwilightConn %>" 
            ProviderName="<%$ ConnectionStrings:TwilightConn.ProviderName %>" 
            SelectCommand="SELECT [Quote], [Character], [Book], [ID] FROM [Quotes]">
        </asp:SqlDataSource>
        <br />
        <br />
        <br />
</asp:Content>
